# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=elisa
pkgver=1
pkgrel=0
commit="357281800852c21fe753b1adc527034b30f1d931"
pkgdesc='Elisa Music Player'
arch="all"
url='https://github/com/kde/elisa'
license="LGPL-3"
depends=""
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev
	qt5-qtsvg-dev ki18n-dev kdeclarative-dev baloo-dev kfilemetadata-dev kxmlgui-dev
	kconfig-dev kcmutils-dev kpackage-dev"
source="https://github.com/kde/$pkgname/archive/$commit.tar.gz"
options="!check" # Fails for unknown reasons
builddir="$srcdir/$pkgname-$commit"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}
sha512sums="ff4d926cb33b33c8a8d7ccf543952d1126375209d3a176e01492031a411ff14bad5e1462b37609da281f47882268c1239b74614070d04fa12990174f02282709  357281800852c21fe753b1adc527034b30f1d931.tar.gz"
